home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / win32 / Ddeml.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-08  |  17.4 KB  |  498 lines

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects --*/
  2.  
  3. /*****************************************************************************\
  4. *                                                                             *
  5. *  ddeml.h -    DDEML API header file                                         *
  6. *                                                                             *
  7. *               Version 3.10                                                  *
  8. *                                                                             *
  9. *               Copyright (c) 1993-96, Microsoft Corp.  All rights reserved.  *
  10. *                                                                             *
  11. \*****************************************************************************/
  12. #ifndef _INC_DDEMLH
  13. #define _INC_DDEMLH
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif /* __cplusplus */
  18.  
  19. /******** public types ********/
  20.  
  21. DECLARE_HANDLE(HCONVLIST);
  22. DECLARE_HANDLE(HCONV);
  23. DECLARE_HANDLE(HSZ);
  24. DECLARE_HANDLE(HDDEDATA);
  25. #define EXPENTRY        CALLBACK
  26.  
  27. /* the following structure is for use with XTYP_WILDCONNECT processing. */
  28.  
  29. typedef struct tagHSZPAIR {
  30.     HSZ hszSvc;
  31.     HSZ hszTopic;
  32. } HSZPAIR;
  33. typedef HSZPAIR FAR *PHSZPAIR;
  34.  
  35. /* The following structure is used by DdeConnect() and DdeConnectList() and
  36.    by XTYP_CONNECT and XTYP_WILDCONNECT callbacks. */
  37.  
  38. typedef struct tagCONVCONTEXT {
  39.     UINT        cb;             /* set to sizeof(CONVCONTEXT) */
  40.     UINT        wFlags;         /* none currently defined. */
  41.     UINT        wCountryID;     /* country code for topic/item strings used. */
  42.     int         iCodePage;      /* codepage used for topic/item strings. */
  43.     DWORD       dwLangID;       /* language ID for topic/item strings. */
  44.     DWORD       dwSecurity;     /* Private security code. */
  45.     SECURITY_QUALITY_OF_SERVICE qos;  /* client side's quality of service */
  46. } CONVCONTEXT;
  47. typedef CONVCONTEXT FAR *PCONVCONTEXT;
  48.  
  49.  
  50. /* The following structure is used by DdeQueryConvInfo(): */
  51.  
  52. typedef struct tagCONVINFO {
  53.     DWORD   cb;            /* sizeof(CONVINFO)  */
  54.     DWORD   hUser;         /* user specified field  */
  55.     HCONV   hConvPartner;  /* hConv on other end or 0 if non-ddemgr partner  */
  56.     HSZ     hszSvcPartner; /* app name of partner if obtainable  */
  57.     HSZ     hszServiceReq; /* AppName requested for connection  */
  58.     HSZ     hszTopic;      /* Topic name for conversation  */
  59.     HSZ     hszItem;       /* transaction item name or NULL if quiescent  */
  60.     UINT    wFmt;          /* transaction format or NULL if quiescent  */
  61.     UINT    wType;         /* XTYP_ for current transaction  */
  62.     UINT    wStatus;       /* ST_ constant for current conversation  */
  63.     UINT    wConvst;       /* XST_ constant for current transaction  */
  64.     UINT    wLastError;    /* last transaction error.  */
  65.     HCONVLIST hConvList;   /* parent hConvList if this conversation is in a list */
  66.     CONVCONTEXT ConvCtxt;  /* conversation context */
  67.     HWND    hwnd;          /* window handle for this conversation */
  68.     HWND    hwndPartner;   /* partner window handle for this conversation */
  69. } CONVINFO;
  70. typedef CONVINFO FAR *PCONVINFO;
  71.  
  72. /***** conversation states (usState) *****/
  73.  
  74. #define     XST_NULL              0  /* quiescent states */
  75. #define     XST_INCOMPLETE        1
  76. #define     XST_CONNECTED         2
  77. #define     XST_INIT1             3  /* mid-initiation states */
  78. #define     XST_INIT2             4
  79. #define     XST_REQSENT           5  /* active conversation states */
  80. #define     XST_DATARCVD          6
  81. #define     XST_POKESENT          7
  82. #define     XST_POKEACKRCVD       8
  83. #define     XST_EXECSENT          9
  84. #define     XST_EXECACKRCVD      10
  85. #define     XST_ADVSENT          11
  86. #define     XST_UNADVSENT        12
  87. #define     XST_ADVACKRCVD       13
  88. #define     XST_UNADVACKRCVD     14
  89. #define     XST_ADVDATASENT      15
  90. #define     XST_ADVDATAACKRCVD   16
  91.  
  92. /* used in LOWORD(dwData1) of XTYP_ADVREQ callbacks... */
  93. #define     CADV_LATEACK         0xFFFF
  94.  
  95. /***** conversation status bits (fsStatus) *****/
  96.  
  97. #define     ST_CONNECTED            0x0001
  98. #define     ST_ADVISE               0x0002
  99. #define     ST_ISLOCAL              0x0004
  100. #define     ST_BLOCKED              0x0008
  101. #define     ST_CLIENT               0x0010
  102. #define     ST_TERMINATED           0x0020
  103. #define     ST_INLIST               0x0040
  104. #define     ST_BLOCKNEXT            0x0080
  105. #define     ST_ISSELF               0x0100
  106.  
  107.  
  108. /* DDE constants for wStatus field */
  109.  
  110. #define DDE_FACK                0x8000
  111. #define DDE_FBUSY               0x4000
  112. #define DDE_FDEFERUPD           0x4000
  113. #define DDE_FACKREQ             0x8000
  114. #define DDE_FRELEASE            0x2000
  115. #define DDE_FREQUESTED          0x1000
  116. #define DDE_FAPPSTATUS          0x00ff
  117. #define DDE_FNOTPROCESSED       0x0000
  118.  
  119. #define DDE_FACKRESERVED        (~(DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS))
  120. #define DDE_FADVRESERVED        (~(DDE_FACKREQ | DDE_FDEFERUPD))
  121. #define DDE_FDATRESERVED        (~(DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED))
  122. #define DDE_FPOKRESERVED        (~(DDE_FRELEASE))
  123.  
  124. /***** message filter hook types *****/
  125.  
  126. #define     MSGF_DDEMGR             0x8001
  127.  
  128. /***** codepage constants ****/
  129.  
  130. #define CP_WINANSI      1004    /* default codepage for windows & old DDE convs. */
  131. #define CP_WINUNICODE   1200
  132. #ifdef UNICODE
  133. #define CP_WINNEUTRAL   CP_WINUNICODE
  134. #else  // !UNICODE
  135. #define CP_WINNEUTRAL   CP_WINANSI
  136. #endif // !UNICODE
  137.  
  138. /***** transaction types *****/
  139.  
  140. #define     XTYPF_NOBLOCK            0x0002  /* CBR_BLOCK will not work */
  141. #define     XTYPF_NODATA             0x0004  /* DDE_FDEFERUPD */
  142. #define     XTYPF_ACKREQ             0x0008  /* DDE_FACKREQ */
  143.  
  144. #define     XCLASS_MASK              0xFC00
  145. #define     XCLASS_BOOL              0x1000
  146. #define     XCLASS_DATA              0x2000
  147. #define     XCLASS_FLAGS             0x4000
  148. #define     XCLASS_NOTIFICATION      0x8000
  149.  
  150. #define     XTYP_ERROR              (0x0000 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
  151. #define     XTYP_ADVDATA            (0x0010 | XCLASS_FLAGS         )
  152. #define     XTYP_ADVREQ             (0x0020 | XCLASS_DATA | XTYPF_NOBLOCK )
  153. #define     XTYP_ADVSTART           (0x0030 | XCLASS_BOOL          )
  154. #define     XTYP_ADVSTOP            (0x0040 | XCLASS_NOTIFICATION)
  155. #define     XTYP_EXECUTE            (0x0050 | XCLASS_FLAGS         )
  156. #define     XTYP_CONNECT            (0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK)
  157. #define     XTYP_CONNECT_CONFIRM    (0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  158. #define     XTYP_XACT_COMPLETE      (0x0080 | XCLASS_NOTIFICATION  )
  159. #define     XTYP_POKE               (0x0090 | XCLASS_FLAGS         )
  160. #define     XTYP_REGISTER           (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  161. #define     XTYP_REQUEST            (0x00B0 | XCLASS_DATA          )
  162. #define     XTYP_DISCONNECT         (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  163. #define     XTYP_UNREGISTER         (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  164. #define     XTYP_WILDCONNECT        (0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK)
  165.  
  166. #define     XTYP_MASK                0x00F0
  167. #define     XTYP_SHIFT               4  /* shift to turn XTYP_ into an index */
  168.  
  169. /***** Timeout constants *****/
  170.  
  171. #define     TIMEOUT_ASYNC           0xFFFFFFFF
  172.  
  173. /***** Transaction ID constants *****/
  174.  
  175. #define     QID_SYNC                0xFFFFFFFF
  176.  
  177. /****** public strings used in DDE ******/
  178.  
  179. #ifdef UNICODE
  180. #define SZDDESYS_TOPIC         L"System"
  181. #define SZDDESYS_ITEM_TOPICS   L"Topics"
  182. #define SZDDESYS_ITEM_SYSITEMS L"SysItems"
  183. #define SZDDESYS_ITEM_RTNMSG   L"ReturnMessage"
  184. #define SZDDESYS_ITEM_STATUS   L"Status"
  185. #define SZDDESYS_ITEM_FORMATS  L"Formats"
  186. #define SZDDESYS_ITEM_HELP     L"Help"
  187. #define SZDDE_ITEM_ITEMLIST    L"TopicItemList"
  188. #else
  189. #define SZDDESYS_TOPIC         "System"
  190. #define SZDDESYS_ITEM_TOPICS   "Topics"
  191. #define SZDDESYS_ITEM_SYSITEMS "SysItems"
  192. #define SZDDESYS_ITEM_RTNMSG   "ReturnMessage"
  193. #define SZDDESYS_ITEM_STATUS   "Status"
  194. #define SZDDESYS_ITEM_FORMATS  "Formats"
  195. #define SZDDESYS_ITEM_HELP     "Help"
  196. #define SZDDE_ITEM_ITEMLIST    "TopicItemList"
  197. #endif
  198.  
  199.  
  200. /****** API entry points ******/
  201.  
  202. typedef HDDEDATA CALLBACK FNCALLBACK(UINT wType, UINT wFmt, HCONV hConv,
  203.         HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2);
  204. typedef HDDEDATA (CALLBACK *PFNCALLBACK)(UINT wType, UINT wFmt, HCONV hConv,
  205.         HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2);
  206.  
  207. #define     CBR_BLOCK           ((HDDEDATA)0xffffffffL)
  208.  
  209. /* DLL registration functions */
  210.  
  211. UINT WINAPI DdeInitializeA(LPDWORD pidInst, PFNCALLBACK pfnCallback,
  212.         DWORD afCmd, DWORD ulRes);
  213. UINT WINAPI DdeInitializeW(LPDWORD pidInst, PFNCALLBACK pfnCallback,
  214.         DWORD afCmd, DWORD ulRes);
  215. #ifdef UNICODE
  216. #define DdeInitialize  DdeInitializeW
  217. #else
  218. #define DdeInitialize  DdeInitializeA
  219. #endif // !UNICODE
  220.  
  221. /*
  222.  * Callback filter flags for use with standard apps.
  223.  */
  224.  
  225. #define     CBF_FAIL_SELFCONNECTIONS     0x00001000
  226. #define     CBF_FAIL_CONNECTIONS         0x00002000
  227. #define     CBF_FAIL_ADVISES             0x00004000
  228. #define     CBF_FAIL_EXECUTES            0x00008000
  229. #define     CBF_FAIL_POKES               0x00010000
  230. #define     CBF_FAIL_REQUESTS            0x00020000
  231. #define     CBF_FAIL_ALLSVRXACTIONS      0x0003f000
  232.  
  233. #define     CBF_SKIP_CONNECT_CONFIRMS    0x00040000
  234. #define     CBF_SKIP_REGISTRATIONS       0x00080000
  235. #define     CBF_SKIP_UNREGISTRATIONS     0x00100000
  236. #define     CBF_SKIP_DISCONNECTS         0x00200000
  237. #define     CBF_SKIP_ALLNOTIFICATIONS    0x003c0000
  238.  
  239. /*
  240.  * Application command flags
  241.  */
  242. #define     APPCMD_CLIENTONLY            0x00000010L
  243. #define     APPCMD_FILTERINITS           0x00000020L
  244. #define     APPCMD_MASK                  0x00000FF0L
  245.  
  246. /*
  247.  * Application classification flags
  248.  */
  249. #define     APPCLASS_STANDARD            0x00000000L
  250. #define     APPCLASS_MASK                0x0000000FL
  251.  
  252.  
  253.  
  254. BOOL WINAPI DdeUninitialize(DWORD idInst);
  255.  
  256. /*
  257.  * conversation enumeration functions
  258.  */
  259.  
  260. HCONVLIST WINAPI DdeConnectList(DWORD idInst, HSZ hszService, HSZ hszTopic,
  261.         HCONVLIST hConvList, PCONVCONTEXT pCC);
  262. HCONV WINAPI DdeQueryNextServer(HCONVLIST hConvList, HCONV hConvPrev);
  263. BOOL WINAPI DdeDisconnectList(HCONVLIST hConvList);
  264.  
  265. /*
  266.  * conversation control functions
  267.  */
  268.  
  269. HCONV WINAPI DdeConnect(DWORD idInst, HSZ hszService, HSZ hszTopic,
  270.         PCONVCONTEXT pCC);
  271. BOOL WINAPI DdeDisconnect(HCONV hConv);
  272. HCONV WINAPI DdeReconnect(HCONV hConv);
  273. UINT WINAPI DdeQueryConvInfo(HCONV hConv, DWORD idTransaction, PCONVINFO pConvInfo);
  274. BOOL WINAPI DdeSetUserHandle(HCONV hConv, DWORD id, DWORD hUser);
  275. BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction);
  276.  
  277.  
  278. /*
  279.  * app server interface functions
  280.  */
  281.  
  282. BOOL WINAPI DdePostAdvise(DWORD idInst, HSZ hszTopic, HSZ hszItem);
  283. BOOL WINAPI DdeEnableCallback(DWORD idInst, HCONV hConv, UINT wCmd);
  284. BOOL WINAPI DdeImpersonateClient(HCONV hConv);
  285.  
  286. #define EC_ENABLEALL            0
  287. #define EC_ENABLEONE            ST_BLOCKNEXT
  288. #define EC_DISABLE              ST_BLOCKED
  289. #define EC_QUERYWAITING         2
  290.  
  291.  
  292. HDDEDATA WINAPI DdeNameService(DWORD idInst, HSZ hsz1, HSZ hsz2, UINT afCmd);
  293.  
  294. #define DNS_REGISTER        0x0001
  295. #define DNS_UNREGISTER      0x0002
  296. #define DNS_FILTERON        0x0004
  297. #define DNS_FILTEROFF       0x0008
  298.  
  299. /*
  300.  * app client interface functions
  301.  */
  302.  
  303. HDDEDATA WINAPI DdeClientTransaction(LPBYTE pData, DWORD cbData,
  304.         HCONV hConv, HSZ hszItem, UINT wFmt, UINT wType,
  305.         DWORD dwTimeout, LPDWORD pdwResult);
  306.  
  307. /*
  308.  *data transfer functions
  309.  */
  310.  
  311. HDDEDATA WINAPI DdeCreateDataHandle(DWORD idInst, LPBYTE pSrc, DWORD cb,
  312.         DWORD cbOff, HSZ hszItem, UINT wFmt, UINT afCmd);
  313. HDDEDATA WINAPI DdeAddData(HDDEDATA hData, LPBYTE pSrc, DWORD cb, DWORD cbOff);
  314. DWORD WINAPI DdeGetData(HDDEDATA hData, LPBYTE pDst, DWORD cbMax, DWORD cbOff);
  315. LPBYTE WINAPI DdeAccessData(HDDEDATA hData, LPDWORD pcbDataSize);
  316. BOOL WINAPI DdeUnaccessData(HDDEDATA hData);
  317. BOOL WINAPI DdeFreeDataHandle(HDDEDATA hData);
  318.  
  319. #define     HDATA_APPOWNED          0x0001
  320.  
  321.  
  322. UINT WINAPI DdeGetLastError(DWORD idInst);
  323.  
  324. #define     DMLERR_NO_ERROR                    0       /* must be 0 */
  325.  
  326. #define     DMLERR_FIRST                       0x4000
  327.  
  328. #define     DMLERR_ADVACKTIMEOUT               0x4000
  329. #define     DMLERR_BUSY                        0x4001
  330. #define     DMLERR_DATAACKTIMEOUT              0x4002
  331. #define     DMLERR_DLL_NOT_INITIALIZED         0x4003
  332. #define     DMLERR_DLL_USAGE                   0x4004
  333. #define     DMLERR_EXECACKTIMEOUT              0x4005
  334. #define     DMLERR_INVALIDPARAMETER            0x4006
  335. #define     DMLERR_LOW_MEMORY                  0x4007
  336. #define     DMLERR_MEMORY_ERROR                0x4008
  337. #define     DMLERR_NOTPROCESSED                0x4009
  338. #define     DMLERR_NO_CONV_ESTABLISHED         0x400a
  339. #define     DMLERR_POKEACKTIMEOUT              0x400b
  340. #define     DMLERR_POSTMSG_FAILED              0x400c
  341. #define     DMLERR_REENTRANCY                  0x400d
  342. #define     DMLERR_SERVER_DIED                 0x400e
  343. #define     DMLERR_SYS_ERROR                   0x400f
  344. #define     DMLERR_UNADVACKTIMEOUT             0x4010
  345. #define     DMLERR_UNFOUND_QUEUE_ID            0x4011
  346.  
  347. #define     DMLERR_LAST                        0x4011
  348.  
  349. HSZ  WINAPI DdeCreateStringHandleA(DWORD idInst, LPCSTR psz, int iCodePage);
  350. HSZ  WINAPI DdeCreateStringHandleW(DWORD idInst, LPCWSTR psz, int iCodePage);
  351. #ifdef UNICODE
  352. #define DdeCreateStringHandle  DdeCreateStringHandleW
  353. #else
  354. #define DdeCreateStringHandle  DdeCreateStringHandleA
  355. #endif // !UNICODE
  356. DWORD WINAPI DdeQueryStringA(DWORD idInst, HSZ hsz, LPSTR psz, DWORD cchMax, int iCodePage);
  357. DWORD WINAPI DdeQueryStringW(DWORD idInst, HSZ hsz, LPWSTR psz, DWORD cchMax, int iCodePage);
  358. #ifdef UNICODE
  359. #define DdeQueryString  DdeQueryStringW
  360. #else
  361. #define DdeQueryString  DdeQueryStringA
  362. #endif // !UNICODE
  363. BOOL WINAPI DdeFreeStringHandle(DWORD idInst, HSZ hsz);
  364. BOOL WINAPI DdeKeepStringHandle(DWORD idInst, HSZ hsz);
  365. int WINAPI DdeCmpStringHandles(HSZ hsz1, HSZ hsz2);
  366.  
  367.  
  368. #ifndef NODDEMLSPY
  369. /*
  370.  * DDEML public debugging header file info
  371.  */
  372.  
  373. typedef struct tagDDEML_MSG_HOOK_DATA {    // new for NT
  374.     UINT uiLo;      // unpacked lo and hi parts of lParam
  375.     UINT uiHi;
  376.     DWORD cbData;   // amount of data in message, if any. May be > than 32 bytes.
  377.     DWORD Data[8];  // data peeking by DDESPY is limited to 32 bytes.
  378. } DDEML_MSG_HOOK_DATA, *PDDEML_MSG_HOOK_DATA;
  379.  
  380.  
  381. typedef struct tagMONMSGSTRUCT {
  382.     UINT    cb;
  383.     HWND    hwndTo;
  384.     DWORD   dwTime;
  385.     HANDLE  hTask;
  386.     UINT    wMsg;
  387.     WPARAM  wParam;
  388.     LPARAM  lParam;
  389.     DDEML_MSG_HOOK_DATA dmhd;       // new for NT
  390. } MONMSGSTRUCT, *PMONMSGSTRUCT;
  391.  
  392. typedef struct tagMONCBSTRUCT {
  393.     UINT   cb;
  394.     DWORD  dwTime;
  395.     HANDLE hTask;
  396.     DWORD  dwRet;
  397.     UINT   wType;
  398.     UINT   wFmt;
  399.     HCONV  hConv;
  400.     HSZ    hsz1;
  401.     HSZ    hsz2;
  402.     HDDEDATA hData;
  403.     DWORD  dwData1;
  404.     DWORD  dwData2;
  405.     CONVCONTEXT cc;                 // new for NT for XTYP_CONNECT callbacks
  406.     DWORD  cbData;                  // new for NT for data peeking
  407.     DWORD  Data[8];                 // new for NT for data peeking
  408. } MONCBSTRUCT, *PMONCBSTRUCT;
  409.  
  410. typedef struct tagMONHSZSTRUCTA {
  411.     UINT   cb;
  412.     BOOL   fsAction;    /* MH_ value */
  413.     DWORD  dwTime;
  414.     HSZ    hsz;
  415.     HANDLE hTask;
  416.     CHAR    str[1];
  417. } MONHSZSTRUCTA, *PMONHSZSTRUCTA;
  418. typedef struct tagMONHSZSTRUCTW {
  419.     UINT   cb;
  420.     BOOL   fsAction;    /* MH_ value */
  421.     DWORD  dwTime;
  422.     HSZ    hsz;
  423.     HANDLE hTask;
  424.     WCHAR   str[1];
  425. } MONHSZSTRUCTW, *PMONHSZSTRUCTW;
  426. #ifdef UNICODE
  427. typedef MONHSZSTRUCTW MONHSZSTRUCT;
  428. typedef PMONHSZSTRUCTW PMONHSZSTRUCT;
  429. #else
  430. typedef MONHSZSTRUCTA MONHSZSTRUCT;
  431. typedef PMONHSZSTRUCTA PMONHSZSTRUCT;
  432. #endif // UNICODE
  433.  
  434. #define MH_CREATE   1
  435. #define MH_KEEP     2
  436. #define MH_DELETE   3
  437. #define MH_CLEANUP  4
  438.  
  439. typedef struct tagMONERRSTRUCT {
  440.     UINT    cb;
  441.     UINT    wLastError;
  442.     DWORD   dwTime;
  443.     HANDLE  hTask;
  444. } MONERRSTRUCT, *PMONERRSTRUCT;
  445.  
  446. typedef struct tagMONLINKSTRUCT {
  447.     UINT    cb;
  448.     DWORD   dwTime;
  449.     HANDLE  hTask;
  450.     BOOL    fEstablished;
  451.     BOOL    fNoData;
  452.     HSZ     hszSvc;
  453.     HSZ     hszTopic;
  454.     HSZ     hszItem;
  455.     UINT    wFmt;
  456.     BOOL    fServer;
  457.     HCONV   hConvServer;
  458.     HCONV   hConvClient;
  459. } MONLINKSTRUCT, *PMONLINKSTRUCT;
  460.  
  461. typedef struct tagMONCONVSTRUCT {
  462.     UINT    cb;
  463.     BOOL    fConnect;
  464.     DWORD   dwTime;
  465.     HANDLE  hTask;
  466.     HSZ     hszSvc;
  467.     HSZ     hszTopic;
  468.     HCONV   hConvClient;        // Globally unique value != apps local hConv
  469.     HCONV   hConvServer;        // Globally unique value != apps local hConv
  470. } MONCONVSTRUCT, *PMONCONVSTRUCT;
  471.  
  472. #define     MAX_MONITORS            4
  473. #define     APPCLASS_MONITOR        0x00000001L
  474. #define     XTYP_MONITOR            (0x00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  475.  
  476. /*
  477.  * Callback filter flags for use with MONITOR apps - 0 implies no monitor
  478.  * callbacks.
  479.  */
  480. #define     MF_HSZ_INFO                  0x01000000
  481. #define     MF_SENDMSGS                  0x02000000
  482. #define     MF_POSTMSGS                  0x04000000
  483. #define     MF_CALLBACKS                 0x08000000
  484. #define     MF_ERRORS                    0x10000000
  485. #define     MF_LINKS                     0x20000000
  486. #define     MF_CONV                      0x40000000
  487.  
  488. #define     MF_MASK                      0xFF000000
  489. #endif /* NODDEMLSPY */
  490.  
  491. #ifdef __cplusplus
  492. }
  493. #endif  /* __cplusplus */
  494.  
  495. #endif /* _INC_DDEMLH */
  496.  
  497.  
  498.